package com.ruoyi.archives.domain;

import com.ruoyi.common.constant.archives.ArchivesConstants;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 应急处置对象 tb_emer_handle
 *
 * @author wng
 * @date 2024-08-08
 */
public class EmerHandle extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * id
     */
    private Long id;
    /**
     * 部门id
     */
    private Long deptId;

    /**
     * 标题
     */
    @Excel(name = "标题")
    private String title;

    /**
     * 类型
     * 事故信息报告 SGXX
     * 危害控制 WHKZ
     * 人员救治 RYJZ
     * 事故调查 SGDC
     * 善后处理 SHCL
     * 舆情应对 YQYD
     */
//    @Excel(name = "类型 " +
//            "事故信息报告 SGXX " +
//            "危害控制 WHKZ " +
//            "人员救治 RYJZ " +
//            "事故调查 SGDC " +
//            "善后处理 SHCL " +
//            "舆情应对 YQYD")
    private ArchivesConstants.EmerHandleTypeEnum type;

    @Excel(name = "类型")
    private String typeName;

    public String getTypeName() {
        return typeName;
    }

    public void setTypeName(String typeName) {
        this.typeName = typeName;
    }

    /**
     * 内容
     */
    @Excel(name = "内容")
    private String content;

    /**
     * 图片，多张逗号隔开
     */
    @Excel(name = "图片，多张逗号隔开", cellType = Excel.ColumnType.IMAGE)
    private String picture;

    /**
     * 0正常 1删除
     */
    private Integer delFlag;

    public void setId(Long id) {
        this.id = id;
    }

    public Long getId() {
        return id;
    }

    public Long getDeptId() {
        return deptId;
    }

    public void setDeptId(Long deptId) {
        this.deptId = deptId;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getTitle() {
        return title;
    }

    public ArchivesConstants.EmerHandleTypeEnum getType() {
        return type;
    }

    public void setType(ArchivesConstants.EmerHandleTypeEnum type) {
        this.type = type;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public String getContent() {
        return content;
    }

    public void setPicture(String picture) {
        this.picture = picture;
    }

    public String getPicture() {
        return picture;
    }

    public void setDelFlag(Integer delFlag) {
        this.delFlag = delFlag;
    }

    public Integer getDelFlag() {
        return delFlag;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("deptId", getDeptId())
                .append("title", getTitle())
                .append("type", getType())
                .append("content", getContent())
                .append("picture", getPicture())
                .append("delFlag", getDelFlag())
                .append("createTime", getCreateTime())
                .append("createBy", getCreateBy())
                .append("updateTime", getUpdateTime())
                .append("updateBy", getUpdateBy())
                .toString();
    }
}
